package ns2;

import java.io.Serializable;

public class Address implements Serializable {

	private static final long serialVersionUID = 113L;

	public int nodeID;

	public int port;

	public Node node;

	public Address(String addr) {
		String[] node_port = addr.split("\\.");
		this.nodeID = Integer.parseInt(node_port[0]);
		this.port = Integer.parseInt(node_port[1]);
		this.node = new Node(this.nodeID);
	}

}
